
package coffee;

import java.io.Serializable;
import java.text.DecimalFormat;

/**
 *
 * @author JtR
 */
public class Statistics implements Serializable {
    private long timestamp;
    private int drink, price, caffein;

    public Statistics(){}
    public Statistics(long timestamp, int drink, int price, int caffein) {
        this.timestamp = timestamp;
        this.drink = drink;
        this.price = price;
        this.caffein = caffein;
    }
    
    public long getTimestamp() {
        return timestamp;
    }
    
    public int getDrink() {
        return drink;
    }
    
    public String getPriceAsString() {
        return new DecimalFormat("#0.00").format((float)price/100f); 
    }
    
    public int getPrice() {
        return price;
    }
    
    public int getCaffein() {
        return caffein;
    }
}
